package com.java.base.exercise.designmode.observer;

/**
 * @Author RenPu
 * @Date 2022/11/12 20:57
 * @Version 1.0
 * @Description:观察者(河南气象局)
 **/
public class StaticConditionDisply implements Observe {

    public StaticConditionDisply(Subject weatherData) {
        weatherData.registerObser(this);
    }

    @Override
    public void update(int temper, int hindym, int press) {
        System.out.println("河南天气气象局播报==========当前温度为："+temper+"当前湿度为："+hindym+"当前压强为："+press);

    }
}
